package net.jueb.sniff4j.extr.user;
import io.netty.channel.Channel;
import net.jueb.sniff4j.extr.auth.User;
import net.jueb.sniff4j.extr.base.AbstractRuntime;
import net.jueb.sniff4j.extr.filter.DefaultObjectFilter;

/**
 * 没有过滤器的user类型
 * @author Administrator
 *
 */
public class DefaultUser extends User{

	public DefaultUser(String name, String passwd) {
		super(name, passwd);
	}

	@Override
	public DefaultObjectFilter getSendToClientFilter(Channel fromChannel,
			Channel toChannel, AbstractRuntime runtime) {
		return new DefaultObjectFilter(fromChannel, toChannel, runtime);
	}

	@Override
	public DefaultObjectFilter getSendToTargetFilter(Channel fromChannel,
			Channel toChannel, AbstractRuntime runtime) {
		return new DefaultObjectFilter(fromChannel, toChannel, runtime);
	}

}
